package com.heima.wemedia.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojo.WmChannel;
import com.heima.wemedia.mapper.WmChannelMapper;
import com.heima.wemedia.mapper.WmMaterialMapper;
import com.heima.wemedia.service.WmChannelService;
import com.heima.wemedia.service.WmMaterialService;
import org.springframework.stereotype.Service;

/**
 * @Description: test
 * @Create by: JJ菜菜
 * @Date: 2022/1/12 22:39
 */

@Service
public class WmChannelServiceImpl extends ServiceImpl<WmChannelMapper, WmChannel> implements WmChannelService {

    /**
     *查询所有频道
     * @return
     */
    @Override
    public ResponseResult findAll() {
        return new ResponseResult().ok(list());
    }
}
